package com.duqc.config;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ClassName SnowflakeKeyGenerator
 * @Description mybatis-plus 自定义主键生成器
 * @Author duqc
 * @Date 2021/7/30
 **/
@Component
@Slf4j
public class SnowflakeKeyGenerator implements IdentifierGenerator {
    @Override
    public Number nextId(Object entity) {
        return null;
    }
}
